package com.composite;

public class Client {
    public static void main(String[] args) {
        // 从大到小创建
        OrganizationComponent university = new University("清华大学", "中国顶级大学");
        OrganizationComponent computerCollege = new College("计算机学院","信息工程学院");
        computerCollege.add(new Department("软件工程", "软件工程不错"));
        university.add(computerCollege);
        university.print();
    }
}
